use strict; 
use warnings; 
use LWP::Simple;

my $url = 'http://webmail.iitk.ac.in//squirrelmail/plugins/captcha/backends/phpcaptcha/image.php?sq=1339766909'; 
my $inp = $ARGV[0];
for (my $index=1;$index<=$inp;$index++)
{
	my $file = "images/img$index.jpg"; 
	getstore($url, $file);
}


